package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.PersonDao;
import com.ericom.model.Person;
@Repository("personDao")
public class PersonDaoHibernate extends GenericDaoHibernate<Person, Long> implements PersonDao{

	public PersonDaoHibernate() {
		super(Person.class);
	}

	public List<Person> findByLastName(String lastName) {
		return this.getHibernateTemplate().find("from Person where lastName=?",lastName);
	}

}
